package cn.ojh.domain;

import java.util.Date;

public class Article {
    private Long id;

    private String title;

    private String code;

    private String keyword;

    private String articleType;

    private String userName;

    private Date time;

    private Integer count;

    private String imgPath;

    private Byte publish;

    private Byte praise;

    private Byte hot;

    private Integer sort;
    
    private ArticleType articleTypeVo;
    
    private ArticleContent articleContent;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getKeyword() {
        return keyword;
    }

    public void setKeyword(String keyword) {
        this.keyword = keyword;
    }

    

    

	public ArticleType getArticleTypeVo() {
		return articleTypeVo;
	}

	public void setArticleTypeVo(ArticleType articleTypeVo) {
		this.articleTypeVo = articleTypeVo;
	}

	public String getArticleType() {
		return articleType;
	}

	public void setArticleType(String articleType) {
		this.articleType = articleType;
	}

	public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public Date getTime() {
        return time;
    }

    public void setTime(Date time) {
        this.time = time;
    }

    public Integer getCount() {
        return count;
    }

    public void setCount(Integer count) {
        this.count = count;
    }

    public String getImgPath() {
        return imgPath;
    }

    public void setImgPath(String imgPath) {
        this.imgPath = imgPath;
    }

    public Byte getPublish() {
        return publish;
    }

    public void setPublish(Byte publish) {
        this.publish = publish;
    }

    public Byte getPraise() {
        return praise;
    }

    public void setPraise(Byte praise) {
        this.praise = praise;
    }

    public Byte getHot() {
        return hot;
    }

    public void setHot(Byte hot) {
        this.hot = hot;
    }

    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }
    
    
    public String getPublishStr() {
    	return this.publish == 0 ? "未发布" : "发布";
    }
    
    public String getPraiseStr() {
    	return this.praise == 0 ? "不推荐" : "推荐";
    }
    
    public String getHotStr() {
    	return this.hot == 0 ? "不热门" : "热门";
    }

	public ArticleContent getArticleContent() {
		return articleContent;
	}

	public void setArticleContent(ArticleContent articleContent) {
		this.articleContent = articleContent;
	}
    
    
}





